﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Emoney.Spider.Basic
{
    public class HtmlTags
    {
        /// <summary>
        /// <a></a>
        /// </summary>
        public bool t_a = false;
        /// <summary>
        /// <table><tbody><tr><th><td>
        /// </summary>
        public bool t_table = false;
        /// <summary>
        /// <p></p>
        /// </summary>
        public bool t_p = false;
        /// <summary>
        /// <font></font>
        /// </summary>
        public bool t_font = false;
        /// <summary>
        /// <div></div>
        /// </summary>
        public bool t_div = false;
        /// <summary>
        /// <span></span>
        /// </summary>
        public bool t_span = false;
        /// <summary>
        /// <img></img>
        /// </summary>
        public bool t_img = false;
        /// <summary>
        /// <script></script>
        /// </summary>
        public bool t_script = false;
        /// <summary>
        /// <b></b><strong></strong>
        /// </summary>
        public bool t_b = false;
        /// <summary>
        /// <br><br />
        /// </summary>
        public bool t_br = false;
        /// <summary>
        /// <h1-7
        /// </summary>
        public bool t_h = false;
        /// <summary>
        /// <hr
        /// </summary>
        public bool t_hr = false;
        /// <summary>
        /// <form
        /// </summary>
        public bool t_form = false;
        /// <summary>
        /// <frame
        /// </summary>
        public bool t_frame = false;
        /// <summary>
        /// <ul<li<dl<dt<dd 
        /// </summary>
        public bool t_li = false;
        /// <summary>
        /// <iframe
        /// </summary>
        public bool t_iframe = false;
        /// <summary>
        /// <sub<sup
        /// </summary>
        public bool t_sub = false;
        /// <summary>
        /// <!---->
        /// </summary>
        public bool t_ps = false;
        /// <summary>
        /// <style
        /// </summary>
        public bool t_style = false;
        /// <summary>
        /// All Html Tags
        /// </summary>
        public bool t_html = false;

        /// <summary>
        /// script,iframe,ps
        /// </summary>
        /// <returns></returns>
        public HtmlTags FstDelHtml()
        {
            HtmlTags t = new HtmlTags();
            t.t_script = true;
            t.t_iframe = true;
            t.t_ps = true;
            return t;
        }

        /// <summary>
        /// script,iframe,ps,frame,style
        /// </summary>
        /// <returns></returns>
        public HtmlTags SecDelHtml()
        {
            HtmlTags t = new HtmlTags();
            t.t_script = true;
            t.t_iframe = true;
            t.t_ps = true;
            t.t_frame = true;
            t.t_style = true;
            return t;
        }

        /// <summary>
        /// script,iframe,ps,frame,style,a,form
        /// </summary>
        /// <returns></returns>
        public HtmlTags ThrDelHtml()
        {
            HtmlTags t = new HtmlTags();
            t.t_script = true;
            t.t_iframe = true;
            t.t_ps = true;
            t.t_frame = true;
            t.t_style = true;
            t.t_a = true;
            t.t_form = true;
            return t;
        }
    }
}
